﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;

/*
 * Author:Conis
 * Date:
 * Description:SQL语句中的Between单元
 */

namespace Conis.Squirrel.SqlBuilder.SqlServer
{
    /// <summary>
    /// Between的SQL语句块
    /// </summary>
    public class BetweenUnit<T> : BaseBetweenUnit<T>
    {
        protected internal BetweenUnit(Connector connector, string fieldName, T startValue, T endValue):
            base(connector,fieldName, startValue, endValue) { }
        /// <summary>
        /// 创建一个参数
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        protected override IDataParameter CreateParameter(string key, object value)
        {
            return new SqlParameter(key, value);
        }
    }
}
